//element-ui
//$--color-primary: #1a1e21 !default;
$--color-primary: #393d41 !default;
$--color-white: #ffffff !default;
$--color-primary-light-1: mix($--color-white, $--color-primary, 10%) !default;
$--color-primary-light-2: mix($--color-white, $--color-primary, 20%) !default;
$--color-primary-light-3: mix($--color-white, $--color-primary, 30%) !default;
$--color-primary-light-4: mix($--color-white, $--color-primary, 40%) !default;
$--color-primary-light-5: mix($--color-white, $--color-primary, 50%) !default;
$--color-primary-light-6: mix($--color-white, $--color-primary, 60%) !default;
$--color-primary-light-7: mix($--color-white, $--color-primary, 70%) !default;
$--color-primary-light-8: mix($--color-white, $--color-primary, 80%) !default;
$--color-primary-light-9: mix($--color-white, $--color-primary, 90%) !default;

$--font-path: "~element-ui/lib/theme-chalk/fonts";
@import "~element-ui/packages/theme-chalk/src/index";

//覆盖一些element-ui样式
.block-checkbox {
  display: block;
}

.operation-container {
  .cell {
    padding: 10px !important;
  }

  .el-button {
    &:nth-child(3) {
      margin-top: 10px;
      margin-left: 0px;
    }

    &:nth-child(4) {
      margin-top: 10px;
    }
  }
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 8px;
  }
}

.small-padding {
  .cell {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

//去掉双击时出现的阴影
.el-radio-button:focus:not(.is-focus):not(:active) {
  box-shadow: none;
}

//表格樣式
.el-table {
  // margin-left: 2px;
  margin: 0;
  border: none !important;
}

.el-table th {
  font-weight: 600;
  border-top: 1px solid #ebeef5;
  text-align: center !important;
}

.el-table td,
.el-table th {
  padding: 6px 0;
}

// 表格里按钮间距
.el-table td .el-button {
  padding: 6px 7px;
}

// 表格里输入框间距
.el-table td .el-input {
  .el-input__inner {
    height: 32px;
    line-height: 32px;
  }
}

// 表格与分页增加间距
.el-table + .el-pagination {
  margin-top: 12px;
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
  // background-color: #e6f3fb;
  background: linear-gradient(to right, rgba(61, 122, 205, 0.1), rgba(132, 184, 255, 0.1));
}

.el-menu {
  border: none;
}

.el-header {
  padding: 0;
}

.el-menu-item:hover,
.el-menu-item:focus {
  background-color: #f2f2f2;
}

//el-tree
.el-tree {
  .el-tree-node__content {
    height: 32px;
  }
}

// 缩小默认文本框高度
.el-form-item {
  .el-form-item__label {
    line-height: 32px !important;
  }

  .el-form-item__content {
    line-height: 32px !important;
  }

  margin-bottom: 20px !important;
}

.el-date-editor {
  height: 32px;
}

.el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 100%;
}

/**
 * Button 按钮
 */
// 缩小默认按钮尺寸

.el-button {
  padding: 9px 15px;
  font-size: 12px;
  border-radius: 3px;
}

a .el-button {
  margin-left: 10px;
}

a + .el-button {
  margin-left: 10px;
}

.el-button--text {
  color: #409eff;
}

.el-button--text:focus,
.el-button--text:hover {
  color: #66b1ff;
}

// .el-button.is-plain:hover,
// .el-button.is-plain:focus {
//   color: #fff;
//   background: linear-gradient(to right, rgba(1, 103, 203, 0.7), rgba(22, 190, 236, 0.7));
// }

.el-table--striped .el-table__body tr.el-table__row--striped td {
  // background-color:	rgba(89,89,89,.2);
}

.el-table--striped .el-table__body tr.el-table__row--striped.current-row td {
// background-color: #c6d9f0;
  background-color: #d0ddee;
}

.el-table {
  .el-table__body-wrapper.is-scrolling-left+.el-table__fixed {
    height: auto !important;
    bottom: 17px;
  }
}

.el-submenu__title {
  height: 43px;
  line-height: 43px;
}

.el-submenu__icon-arrow {
  right: 30px;
}

.el-menu-item {
  height: 43px;
  line-height: 43px;
}

.el-submenu .el-menu-item {
  height: 37px;
  line-height: 37px;
}

.el-menu i.fa {
  font-size: 14px !important;
  margin-right: 10px !important;
  color: #000 !important;
}

.el-menu i.fa+span {
  font-size: 14px !important;
}

.pagination-container {
  margin-top: 15px;
}

body .el-table th.gutter {
  display: table-cell !important;
}

/** IE11placeholder文字无法置灰 Begin*/
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  //ie10+ input和textarea
  color: #999 !important;
}

input::-webkit-input-placeholder {
  color: #999 !important;
}

input:-moz-placeholder {
  color: #999 !important;
}

input::-moz-placeholder {
  color: #999 !important;
}

input:-ms-input-placeholder {
  color: #999 !important;
}

/** IE11placeholder文字无法置灰 End */

.el-checkbox .el-checkbox__input.is-checked .el-checkbox__inner {
  // border-color: #2d8cf0;
  // background-color: #2d8cf0;
}

.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  // border-color: #2d8cf0 !important;
  // background-color: #2d8cf0 !important;
}

.el-icon-edit-outline::before {
  margin: 0 -5px 0 0 !important;
}

.el-icon-delete::before {
  margin: 0 -5px 0 0 !important;
}

.el-pager {
  li {
    background-color: #fff !important;
  }

  li.active {
    color: #3d7acd !important;
    // color: #409eff !important;
    cursor: default;
  }

  li:hover {
    color: #3d7acd !important;
    // color: #409eff !important;
  }
}

.el-pagination button {
  background-color: #fff !important;
}

.el-pagination button:hover {
  // color: #409eff;
  color: #3d7acd;
}

.el-pagination button:disabled {
  color: #c0c4cc;
}

.pagination-container {
  .el-input {
    .el-input__inner {
      line-height: 28px;
    }
  }
}

.zk-checkbox--checked .zk-checkbox__icon::after {
  display: block !important;
  border: 1px solid #fff;
}

.zk-checkbox__icon::after {
  display: block !important;
  border: 1px solid #fff;
}

.el-pagination__total {
  margin-left: 20px;
}

.el-pagination .el-input__inner {
  margin-left: 10px;
}

.el-pagination__jump {
  .el-pagination__editor {
    margin: 0 10px;
  }

  .el-input__inner {
    margin-left: 0;
  }
}

.el-pagination span:not([class*="suffix"]),
.el-pagination button {
  height: 32px;
  line-height: 32px;
}

.el-pager li {
  height: 30px;
  line-height: 30px;
}

input::-ms-clear {
  display: none;
}

input::-ms-reveal {
  display: none;
}

.el-input__icon {
  line-height: 32px !important;
}

// 页面标题 背景色
.el-card__header {
  position: relative;
  line-height: 2.2 !important;
  padding: 5px 20px !important;
  background-color: #fff;
  border-bottom: 1px solid #d1d1d1;
}

.el-card__header::before {
  content: "";
  position: absolute;
  left: 0%;
  top: 10%;
  width: 5px;
  height: 80%;
  background: #666;
}

.el-menu {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 68px);
}

.el-menu--collapse .el-submenu__title span {
  display: none;
}

.el-dialog__header {
  border-bottom: 1px solid #e4e4e4;
}

//蓝色渐变版
.el-tabs__item.is-top.is-active.is-closable {
  // background: linear-gradient(to right, #0068cb, #16bfed);
  background: linear-gradient(to right, #3d7acd, #84b8ff);
  color: #fff;
}

.el-button--danger {
  background: linear-gradient(to right, #3d7acd, #84b8ff);
  // background: linear-gradient(to right, #0068cb, #16bfed);
  border: none;
}

.el-submenu__title:hover {
  background: linear-gradient(to right, #3d7acd, #84b8ff) !important;
  // background: linear-gradient(to right, #0068cb, #16bfed) !important;
  color: #fff !important;

  .fa,
  .el-submenu__icon-arrow {
    color: #fff !important;
  }
}

.el-menu-item:hover,
.el-menu-item:focus {
  // background: linear-gradient(to right, #0068cb, #16bfed) !important;
  background: linear-gradient(to right, #3d7acd, #84b8ff) !important;
  color: #fff !important;

  .fa {
    color: #fff !important;
  }
}

.el-menu-item.is-active {
  background: linear-gradient(to right, #3d7acd, #84b8ff);
  // background: linear-gradient(to right, #0068cb, #16bfed);
  color: #fff !important;

  i.fa {
    color: #fff !important;
  }
}

.el-input,
.el-select {
  .el-input__inner {
    height: 32px;
    line-height: 32px;

    &:hover,
    &:focus,
    &:focus-within {
      border-color: #016ccd !important;
    }
  }
}

.el-select {
  .el-input.is-focus .el-input__inner {
    border-color: #016ccd;
  }
}

.el-textarea__inner:focus {
  border-color: #016ccd;
}

.el-table {
  thead tr {
    // background: linear-gradient(to right, #0068cb, #16bfed) !important;
    background: linear-gradient(to right, #3d7acd, #84b8ff) !important;
    color: #fff !important;

    th {
      background-color: transparent;
    }
  }
}

.el-button:hover,
.el-button:focus {
  background-color: #fff;
}
.el-button--primary {
  color: #fff !important;
}

.el-table th .el-checkbox__input.is-checked .el-checkbox__inner{
  background-color: #ffffff;
}
.el-table th .el-checkbox__input.is-checked .el-checkbox__inner::after{
  border-color: #3d7acd;
}
// 子
.el-checkbox__input.is-checked .el-checkbox__inner {
  border-color: #3d7acd;
  background: #3d7acd;
  // border-color: #0068cb;
  // background: #0068cb;
}

.el-checkbox__inner:hover {
  border-color: #3d7acd;
  // border-color: #0068cb;
}

.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  border-color: #3d7acd;
  background: #ffffff;
  // border-color: #0068cb;
  // background: #0068cb;
}

.el-checkbox__input.is-indeterminate .el-checkbox__inner::before {
  background-color: #3d7acd;
}

.el-checkbox__input.is-focus .el-checkbox__inner {
  border-color: #3d7acd;
  // border-color: #0068cb;
}

.el-date-table td.current:not(.disabled) span {
  // background: linear-gradient(to right, rgba(1, 103, 203, 0.7), rgba(22, 190, 236, 0.7));
  background: linear-gradient(to right, rgba(61, 122, 205, 0.7), rgba(132, 184, 255, 0.7));
}

el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
.el-table__body tr.current-row>td {
  background-color: #c6d9f0;
}

//hover--row背景色
.el-table__body tr.hover-row,
.el-table__body tr.hover-row.current-row,
.el-table__body tr.hover-row.el-table__row--striped,
.el-table__body tr.hover-row.el-table__row--striped.current-row {
  // background: linear-gradient(to right, rgba(1, 103, 203, 0.7), rgba(22, 190, 236, 0.7));
  background: linear-gradient(to right, rgba(61, 122, 205, 0.7), rgba(132, 184, 255, 0.7));

  td {
    background-color: transparent;
    color: #fff;
  }
}

.el-button.el-button--default {
  border-color: #3d7acd;
  color: #3d7acd;
  // border-color: #016ccd;
  // color: #016ccd;
}

.el-button--danger:hover,
.el-button--danger:focus {
  color: #fff !important;
  background: linear-gradient(to right, rgba(61, 122, 205, 0.7), rgba(132, 184, 255, 0.7));
}

.el-button--danger.is-disabled,
.el-button--danger.is-disabled:hover,
.el-button--danger.is-disabled:focus,
.el-button--danger.is-disabled:active {
  color: #fff !important;
  background: linear-gradient(to right, rgba(61, 122, 205, 0.3), rgba(132, 184, 255, 0.3)) !important;
  // opacity: 0.5;
}

.el-button--primary {
  background: linear-gradient(to right, rgba(61, 122, 205, 1), rgba(132, 184, 255, 1));
  border: none;
}

.el-button--primary:hover,
.el-button--primary:focus {
// background: linear-gradient(to right, rgba(1, 103, 203, 0.7), rgba(22, 190, 236, 0.7));
  background: linear-gradient(to right, rgba(61, 122, 205, 0.7), rgba(132, 184, 255, 0.7));
  border: none;
}
